<?php
date_default_timezone_set('Europe/Warsaw');

defined('APP_PATHNAME')
	|| define('APP_PATHNAME',
			realpath(dirname(__FILE__) . '/..'));

defined('APP_ENV')
	|| define('APP_ENV',
		(getenv('APP_ENV') ? getenv('APP_ENV') : 'production'));

define('APP_MODULES_PATHNAME', APP_PATHNAME . '/modules/');
define('APP_LANGUAGE_PATHNAME', APP_PATHNAME . '/language/');
define('APP_CONFIGURATION_DIRNAME', 'configuration');
define('APP_CONFIGURATION_PATHNAME', APP_PATHNAME . '/' . APP_CONFIGURATION_DIRNAME . '/');

define('APP_TEMPLATES_DIRNAME', 'template');
define('APP_TEMPLATES_PATHNAME', APP_PATHNAME . '/' . APP_TEMPLATES_DIRNAME . '/');

define('TMP_PATHNAME', realpath('../tmp') . DIRECTORY_SEPARATOR);
define('LOG_PATHNAME', realpath('../log') . DIRECTORY_SEPARATOR);
define('LIB_PATHNAME', realpath('../lib') . DIRECTORY_SEPARATOR);
define('SEARCH_LUCENE_PATHNAME', realpath('../search') . '/default/');

/**
 * Stałe applikacji - katalog publiczny
 */

defined('PUBLIC_DIRNAME')
	|| define('PUBLIC_DIRNAME', 'pub');

define('PUBLIC_PATHNAME', realpath('../' . PUBLIC_DIRNAME) . '/');

define('PUBLIC_TEMPLATES_DIRNAME', 'skins');
define('PUBLIC_TEMPLATES_PATHNAME', PUBLIC_PATHNAME . PUBLIC_TEMPLATES_DIRNAME . '/');

defined('LIBRARY_ZEND_VERSION')
	|| define('LIBRARY_ZEND_VERSION', '1.10.2');

defined('LIBRARY_KONTORX_VERSION')
	|| define('LIBRARY_KONTORX_VERSION', 'trunk');

set_include_path(implode(PATH_SEPARATOR, array(
	'/usr/share/php/Zend/' . LIBRARY_ZEND_VERSION . '/',
	'/usr/share/php/KontorX/' . LIBRARY_KONTORX_VERSION . '/',
//	'/usr/share/php/',
//	LIB_PATHNAME
)));